package com.itheima.reggie.mapper;

import com.itheima.reggie.entity.Orders;
import org.apache.ibatis.annotations.Insert;

/**
 * @Author: Rodgers
 * @Date 2022/3/18 16:19
 */
public interface OrderMapper {

    //新增订单主表数据
    @Insert("insert into orders values(#{id},#{number},#{status},#{userId},#{addressBookId}," +
            "#{orderTime},#{checkoutTime},#{payMethod},#{amount},#{remark},#{phone},#{address}," +
            "#{userName},#{consignee})")
    void save(Orders orders);
}
